home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / RMI_OS / RMI-PREB / EXAMPLES / STOCK / STOCKNOT.JAV < prev    next >
Encoding:
Text File  |  1996-11-08  |  1.4 KB  |  43 lines

  1. /*
  2.  * %W% %E%
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify, and distribute this software
  7.  * and its documentation for NON-COMMERCIAL purposes and without
  8.  * fee is hereby granted provided that this copyright notice
  9.  * appears in all copies. Please refer to the file "copyright.html"
  10.  * for further important copyright and licensing information.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  13.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  14.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  15.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  16.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  17.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_pre-beta
  20.  */
  21. package examples.stock;
  22.  
  23. import java.rmi.*;
  24. import java.util.Date;
  25.  
  26. /**
  27.  * The StockNotify remote interface is used to receive a stock
  28.  * update.
  29.  */
  30. public interface StockNotify extends java.rmi.Remote {
  31.  
  32.     /**
  33.      * Notification of stock updates for a particular time.
  34.      * @param date the time of the stock update
  35.      * @param stocks an array containing the stocks for which the
  36.      * object has registered interest.
  37.      * @exception RemoteException if a communication failure occurs
  38.      */
  39.     void update (Date date, Stock[] stocks) throws RemoteException;
  40. }
  41.  
  42.     
  43.